package com.gopay.common.constants.bank;

import java.io.Serializable;

/**
 * 联通沃支付常量类
 * 
 * @CUCCPayConstants.java
 * @author WangHongFei
 */
public class CuccPayConstants implements Serializable {

	private static final long serialVersionUID = -2743263771356072610L;
	// 订单查询交易返回码
	/** 成功. */
	public static final String TRADE_RETURN_SUCCESS = "SUCCESS";
	/** 联通沃支付平台系统错误. */
	public static final String TRADE_RETURN_SYSTEM_ERROR = "SYSTEM_ERROR";
	/** 验证签名不对. */
	public static final String TRADE_RETURN_SIGN_ERROR = "ILLEGAL_SIGN";
	/** 签名类型不对. */
	public static final String TRADE_RETURN_SIGNTYPE_ERROR = "ILLEGAL_SIGN_TYPE";
	/** 参数不正确. */
	public static final String TRADE_RETURN_PARAMETER_ERROR = "ILLEGAL_ARGUMENT";
	/** 商户号不存在. */
	public static final String TRADE_RETURN_MERNO_NOT_EXIST = "ILLEGAL_MERCHANT_NO";
	/** 订单号不存在. */
	public static final String TRADE_RETURN_ORDERNO_NOT_EXIST = "ILLEGA_ORDER_NO";
	/** 没有权限. */
	public static final String TRADE_RETURN_NO_PERMISSIONS = "HAS_NO_PRIVILEGE";
	/** 原交易不存在. */
	public static final String TRADE_RETURN_ORIG_TRADE_NOEXIST = "ILLEGAL_ORIG_TRADE";
	/** 退款金额大于原交易金额. */
	public static final String TRADE_RETURN_REFUND_AMOUNT_TOO_LARGE = "REFUND_AMOUNT_TOO_LARGE";
	/** 加密错误. */
	public static final String TRADE_RETURN_ENCRYPT_ERROR = "ENCRYPT_ERROR";
	
	// 订单状态
	/** 订单状态 0：联通沃支付平台处理中.*/
	public static final String ORDER_STATE_DEALING = "0";
	/** 订单状态 1：交易成功.*/
	public static final String ORDER_STATE_SUCCESS = "1";
	/** 订单状态 2：订单关闭(失败).*/
	public static final String ORDER_STATE_CLOSED = "2";
	/** 订单状态 3：付款未确认.*/
	public static final String ORDER_STATE_UNCONFIRMED = "3";
	/** 订单状态 8：订单被撤销.*/
	public static final String ORDER_STATE_REVOCATION = "8";
	
	// 支付结果响应模式
	/** 通知方式1：页面重定向回调*/
	public static final String RESP_MODE_CALLBACK = "1";
	/** 通知方式2：服务器异步通知*/
	public static final String RESP_MODE_NOTIFY = "2";

}
